The SimpleMenu Component > FSimpleMenu.getItemAt() |
FSimpleMenu.getItemAt(label)
Availability
Flash Player 6.
Usage
sm_instance.getItemAt (index)
Parameters
index - An integer specifying an item on the
SimpleMenu component.
Returns
An object with label and itemType properties.
Description
Retrieves an object containing the label and itemType properties of an item on the SimpleMenu at the specified index.
Example
The following traces the labels of all items on the SimpleMenu to the output window:
for (i = 0; i < sm.getLength(); i++) {
trace(sm.getItemAt(i).label);
}
See also
FSimpleMenu.addItemAt
FSimpleMenu.removeItemAt